package com.ruoyi.discuss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.discuss.mapper.BiguserMapper;
import com.ruoyi.discuss.domain.Biguser;
import com.ruoyi.discuss.service.IBiguserService;

/**
 * 用户Service业务层处理
 *
 * @author ruoyi
 * @date 2023-12-14
 */
@Service
public class BiguserServiceImpl implements IBiguserService
{
    @Autowired
    private BiguserMapper biguserMapper;

    /**
     * 查询用户
     *
     * @param userid 用户主键
     * @return 用户
     */
    @Override
    public Biguser selectBiguserByUserid(Long userid)
    {
        return biguserMapper.selectBiguserByUserid(userid);
    }

    /**
     * 查询用户列表
     *
     * @param biguser 用户
     * @return 用户
     */
    @Override
    public List<Biguser> selectBiguserList(Biguser biguser)
    {
        return biguserMapper.selectBiguserList(biguser);
    }

    /**
     * 新增用户
     *
     * @param biguser 用户
     * @return 结果
     */
    @Override
    public int insertBiguser(Biguser biguser)
    {
        return biguserMapper.insertBiguser(biguser);
    }

    /**
     * 修改用户
     *
     * @param biguser 用户
     * @return 结果
     */
    @Override
    public int updateBiguser(Biguser biguser)
    {
        return biguserMapper.updateBiguser(biguser);
    }

    /**
     * 批量删除用户
     *
     * @param userids 需要删除的用户主键
     * @return 结果
     */
    @Override
    public int deleteBiguserByUserids(Long[] userids)
    {
        return biguserMapper.deleteBiguserByUserids(userids);
    }

    /**
     * 删除用户信息
     *
     * @param userid 用户主键
     * @return 结果
     */
    @Override
    public int deleteBiguserByUserid(Long userid)
    {
        return biguserMapper.deleteBiguserByUserid(userid);
    }


    @Override
    public int updatePointById(Long userid, Long addpoint) {
        return biguserMapper.updatePointById(userid,addpoint);
    }
}
